<div id="contenido">
<table cellspacing="3" cellpadding="0" width="100%">
	<!-- begin block template -->
	<tbody>
		<tr>
			<td valign="top">
			<table cellspacing="0" cellpadding="0" width="100%">
				<tbody>
					<tr>
						<td width="100%" class="tablemenu">
						<table cellspacing="1" cellpadding="1" width="100%">
							<tbody>
								<tr>
									<td class="contents"><!-- Comienzo de la ficha -->
									<table style="width: 100%" cellpadding="0" cellspacing="2">
										<!-- begin block template -->
										<tbody>
											<!-- Inicio caja -->
											<tr>
												<td valign="top">
												<table cellpadding="0" cellspacing="0" width="100%">
													<tbody>
														<tr>
															<td>
															<table cellpadding="0" cellspacing="0" width="100%">
																<tbody>
																	<tr>
																		<td class="tdmenblock" width="1%"><img
																			src="/proyecto_animedb/web/images/m_sx.gif"
																			class="tdmenblock" alt="" /></td>
																		<td class="sottotitolo"
																			style="background-image: url(/proyecto_animedb/web/images/m_sf.gif);"
																			nowrap="nowrap" valign="middle" width="99%">
																		Informaci&oacute;n de anime</td>
																		<td class="tdmenblock" width="1%"><img
																			src="/proyecto_animedb/web/images/m_dx.gif"
																			class="tdmenblock" alt="" /></td>
																	</tr>
																</tbody>
															</table>
															</td>
														</tr>
														<tr>
															<td class="tablemenu" width="100%">
															<table cellpadding="1" cellspacing="1" width="100%">
																<tbody>
																	<tr>
																		<td class="blocks">
																		<table cellpadding="1" cellspacing="1" width="100%">
																			<tbody>
																				<tr>
																					<td class="tdblock" width="100%">
																					<table width='100%' border='0' cellspacing='2'
																						class='verAnime'>
																						<tr>
																							<td colspan='2'>
																							<table width='100%' border='0'>
																								<tr>
																									<td class='tituloAnime'><?php echo $oVideo->getTitulo() ?></td>
																								</tr>
																							</table>
																							</td>
																						</tr>
																						<tr>
																							<td width='25%' align='center' valign='top'
																								class='caratulaAnime'><?php echo image_tag('caratulas/video/'.$oVideo->getId().'.jpg') ?>
																							<!-- <img class='verCaratula' src='./clases/Web_imagen.php?imagen={id},tipo=caratulas,ancho=0,alto=0' alt='{id}' />-->
																							</td>
																							<td width='75%' valign='top' class='datosAnime'
																								colspan='2'>
																							<div class='datos_anime'>
																							<table class='datosAnime' border='0' width='95%'>
																								<tr>
																									<td class='nombreDatoAnime'>T&iacute;tulo
																									original:</td>
																									<td style='width: 80%'><em><?php echo $oVideo->getTituloOriginal() ?></em></td>
																								</tr>
																								<tr>
																									<td class='nombreDatoAnime'>G&eacute;neros:</td>
																									<td><?php echo $sGeneros ?></td>
																								</tr>
																								<tr>
																									<td class='nombreDatoAnime'>Tipo:</td>
																									<td><?php echo link_to($oVideo->getTipoDescarga()->getTipo(), 'anime/busqueda?tipos='.$oVideo->getTipoDescarga()->getId()) ?></td>
																								</tr>
																								<tr>
																									<td class='nombreDatoAnime'>Cap&iacute;tulos:</td>
																									<td><?php if (($oVideo->getCapitulos() != null)&&($oVideo->getCapitulos() != 0)): ?>
																									<?php echo link_to($oVideo->getCapitulos(), 'anime/busqueda?capitulos='.$oVideo->getCapitulos()); ?>
																									<?php endif; ?></td>
																								</tr>
																								<tr>
																									<td class='nombreDatoAnime'>A&ntilde;o inicio:</td>
																									<?php if ($oVideo->getAnoInicio() == ''): ?>
																										<td>&nbsp;</td>
																									<?php else: ?>
																										<td><?php echo link_to($oVideo->getAnoInicio(), 'anime/busqueda?inicio='.$oVideo->getAnoInicio()) ?></td>
																									<?php endif; ?>
																								</tr>
																								<tr>
																									<td class='nombreDatoAnime'>A&ntilde;o fin:</td>
																										<?php if ($oVideo->getAnoFin() == ''): ?>
																											<td>&nbsp;</td>
																										<?php else: ?>
																											<td><?php echo link_to($oVideo->getAnoFin(), 'anime/busqueda?fin='.$oVideo->getAnoFin()) ?></td>
																										<?php endif; ?>
																								</tr>
																								<tr>
																									<td class='nombreDatoAnime'>Estudios:</td>
																									<td><?php if ($aEstudios != null): ?> <?php foreach ($aEstudios as $oEstudio): ?>
																									<?php echo link_to($oEstudio['nombre'], 'anime/busqueda/?estudios='.$oEstudio['id']); ?>
																									<?php echo link_to(image_tag('enlace.jpg'), $oEstudio['url'], array('target' => '_blank')); ?>
																									<?php endforeach; ?> <?php endif; ?></td>
																								</tr>
																								<tr>
																									<td class='nombreDatoAnime'>Web:</td>
																									<?php if ($oVideo->getWeb() == ''): ?>
																										<td><a href="#">[<?php echo $oVideo->getTitulo() ?>]</a></td>
																									<?php else: ?>
																										<td>[<?php echo link_to($oVideo->getTitulo(), $oVideo->getWeb()) ?>]</td>
																									<?php endif; ?>
																								</tr>
																								<tr>
																									<td class='nombreDatoAnime'>Tags:</td>
																									<td><?php echo $sTags ?></td>
																								</tr>
																								<tr>
																									<td class='nombreDatoAnime'>Importancia:</td>
																									<td><?php echo $fRelevancia ?>% <?php echo image_tag('importancia_'.$iImportancia.'.png') ?></td>
																								</tr>
																								<tr>
																									<td class='nombreDatoAnime'>Valoraciones:</td>
																									<td><?php echo $fValoracion; ?>&nbsp;&nbsp; <?php echo image_tag('plus.gif', array('id' => 'imagenValoraciones', 'onclick' => 'javascript:MostrarComentarios("'.url_for('anime/ver_comentarios').'", "'.$oVideo->getId().'")')) ?>
																									<span class='botonInsertarComentario'
																										onclick='javascript:MostrarInsertarComentario()'>&nbsp;Insertar
																									comentario&nbsp;</span><br />
																									<br />
																									</td>
																								</tr>
																								<tr>
																									<td colspan='2'>
																									<div id='insertar_valoraciones'
																										style='display: none'>Comentario: <input
																										style='font-size: smaller;' type='text'
																										name='comentario' id='comentario'
																										maxlength='255' size='25' /> &nbsp; <select
																										style='font-size: smaller;' name='valoracion'
																										id='valoracion'>
																										<option value='1'>1</option>
																										<option value='2'>2</option>
																										<option value='3'>3</option>
																										<option value='4'>4</option>
																										<option value='5'>5</option>
																										<option value='6'>6</option>
																										<option value='7'>7</option>
																										<option value='8'>8</option>
																										<option value='9'>9</option>
																										<option value='10'>10</option>
																									</select> &nbsp;
																									<button style='font-size: smaller;'
																										onclick='javascript:InsertarComentario()'>Enviar</button>
																									<input name='id' id='id' type='hidden'
																										value='{id}' /></div>
																									</td>
																								</tr>
																								<tr>
																									<td colspan='2'>
																									<div id='valoraciones' style='display: none;'>
																									</div>
																									<div id='erroresComentarios'
																										style='display: none;'></div>
																									</td>
																								</tr>
																								<tr>
																									<td colspan='2'>
																									<table class='relaciones' cellspacing='2'
																										style='width: 100%'>
																										<tr>
																											<td class='nombreDatoAnime'
																												style='width: 10%'>Precuelas:</td>
																											<td style='width: 90%'><?php echo $sPrecuelas ?></td>
																										</tr>
																										<tr>
																											<td class='nombreDatoAnime'
																												style='width: 10%'>Secuelas:</td>
																											<td style='width: 90%'><?php echo $sSecuelas ?></td>
																										</tr>
																										<tr>
																											<td class='nombreDatoAnime'
																												style='width: 10%'>Otros:</td>
																											<td style='width: 90%'><?php echo $sOtros ?></td>
																										</tr>
																									</table>
																									</td>
																								</tr>
																							</table>
																							<br />
																							<table class='sinopsis_anime' width='100%'>
																								<tr>
																									<td class='sinopsis_anime'>
																									<div class='sinopsisAnime'><?php echo $oVideo->getSinopsis() ?></div>
																									</td>
																								</tr>
																								<tr>
																									<td>
																									<div id='misAnimes'></div>
																									<script type="text/javascript">
                      			                                                            		// AjaxActualizar('misAnimes', 'misAnimes', 'accion_mis_animes.php', 'POST', 'id={id}');
                      			                                                            	</script>
																									</td>
																								</tr>
																							</table>
																							</div>
																							</td>
																						</tr>
																					</table>
																					</td>
																				</tr>
																			</tbody>
																		</table>
																		<!-- Fansubs -->
																		<table style="width: 100%; text-align: center">
																			<tr>
																				<td>
																				<table width="75%" align="center">
																					<tr>
																						<td>
																						<div id="tabFansubs">
																						<h2>Fansubs</h2>
																						</div>
																						</td>
																					</tr>
																				</table>
																				<script type="text/javascript">
                      														(function() {
                      														    var tabView = new YAHOO.widget.TabView();
                      														    {tabs}
                      														    tabView.appendTo('tabFansubs');
                      														})();
                      													</script> <br />
																				<br />
																				</td>
																			</tr>
																		</table>
																		<!-- Fin fansubs --></td>
																	</tr>
																</tbody>
															</table>
															</td>
														</tr>
													</tbody>
												</table>
												</td>
											</tr>
											<!-- Fin caja -->
											<tr>
												<td class="tdspacer">&nbsp;</td>
											</tr>
										</tbody>
									</table>
									<!-- Fin de la ficha --></td>
								</tr>
							</tbody>
						</table>
						</td>
					</tr>
					<tr>
						<td>
						<table cellspacing="0" cellpadding="0" width="100%">
							<tbody>
								<tr>
									<td align="right" width="1%" valign="top" class="tdmenblock"><img
										alt="" class="tdmenblock"
										src="/proyecto_animedb/web/images/m_sx2.gif" /></td>
									<td width="99%"
										style="background-image: url(/proyecto_animedb/web/images/m_sf2.gif);"
										class="tdmenblock"><img alt="" class="tdmenblock"
										src="/proyecto_animedb/web/images/m_sf2.gif" /></td>
									<td width="1%" class="tdmenblock"><img alt=""
										class="tdmenblock"
										src="/proyecto_animedb/web/images/m_dx2.gif" /></td>
								</tr>
							</tbody>
						</table>
						</td>
					</tr>
				</tbody>
			</table>
			</td>
		</tr>
		<tr>
			<td class="tdspacer">&nbsp;</td>
		</tr>
		<!-- end block template -->
	</tbody>
</table>
</div>
